package org.example.new_hbps_backend_reconstruction.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.new_hbps_backend_reconstruction.entity.StepCountLogsEntity;

import java.time.LocalDate;
import java.util.List;

/**
 * @author 丁利军
 * @date 2025年10月15日 21:34
 * @description 有关步数的service层接口
 */
public interface StepCountLogsService extends IService<StepCountLogsEntity> {

    // 查找最新一条
    StepCountLogsEntity getLatestByPatientUid(Long patientUid);

    // 分页查询
    IPage<StepCountLogsEntity> getPageByPatientUid(Long patientUid, int pageNum, int pageSize);

    // 按日期查询
    List<StepCountLogsEntity> getByPatientUidAndDate(Long patientUid, LocalDate date);

    // 查找所有
    List<StepCountLogsEntity> getAllByPatientUid(Long patientUid);
}

